package org.study.rule.boot.model;

import lombok.*;

import java.io.Serializable;

/**
 * 作用描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2024年08月25日
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AlarmConfig implements Serializable {
    private static final long serialVersionUID = 5532185632458289798L;

    /**
     * 告警名称
     */
    private String name;

    /**
     * 告警等级
     */
    private Integer level;

    /**
     * 告警设备id
     */
    private Integer deviceId;

    /**
     * 告警点位id
     */
    private Integer pointId;

    /**
     * 告警配置，json格式，例如：
     * {"operator":"gt", "param1":"2"}
     * {"operator":"ge", "param1":"2"}
     * {"operator":"lt", "param1":"2"}
     * {"operator":"le", "param1":"2"}
     * {"operator":"eq", "param1":"2"}
     * {"operator":"ne", "param1":"2"}
     * {"operator":"in", "param1":"2,3,4,5"}
     * {"operator":"not_in", "param1":"2,3,4,5"}
     * {"operator":"between", "param1":"2", "param2":"5"}
     * {"operator":"not_between", "param1":"2", "param2":"5"}
     */
    private String config;
}
